package gitee.com;
/*class Date{
    public int year;
    public int month;
    public int day;

    public void initDate1(Date this, int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void initDate2(Date this, int y, int m, int d){
        year = y;
        month = m;
        day = d;
    }

    public void printDate(Date this){
        System.out.println(year + "年 " + month + "月 " + day + "日 ");
    }
}*/

/*public class Test{
    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();

        d1.initDate1(2024,5,13);
        d1.printDate();
        System.out.println("=====================");
        d2.initDate2(2024,5,14);
        d2.printDate();
        System.out.println("=====================");
        d3.initDate2(2024,5,15);
        d3.printDate();
    }
}*/

class Dog{
    public String name;

    public Dog(){
        this(2024);
    }

    public Dog(int year){
        this();
        System.out.println(year + "出生了");
    }
}

public class Test{
    public static void main(String[] args) {
        Dog dog = new Dog(2024);
        Dog dog2 = new Dog();
    }
}
